package com.link.base.base.image.service;

import com.link.base.base.image.model.Image;
import com.link.core.basic.service.BasicService;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author: LiQun
 * created: 2018/8/20
 * comments: appimage根据父Id更新头Id
 */
public interface AppImageService extends BasicService<Image> {

    /**
     * 根据父Id更新头Id
     *
     * @param image
     * @throws Exception
     */
    public void imageHeadIdUpdate(Image image) throws Exception;

    /**
     * 单个附件上传
     * @author Lizt
     * @return Image
     * @date 2019/1/25
     */
    Image upload(MultipartFile myfile, Image record) throws Exception;

    /**
     * 项目系统反馈功能保存图片
     *
     * @author 李莹
     * @date 2019/12/24 06:23
     * @param entity 图片实体对象
     * @throws Exception
     */
    void insertOuterImage(Image entity) throws Exception;

}
